<@master template="/common/master"  title="首页-p2p金融">
	<div class="cenPersonal">
    	<div class="zhBox"><span class="zhanghuIco"></span><strong>${member.account}</strong></div>
        <div class="dwb zhMomey">
        	<div class="bf">账户余额<div class="mt10"><span> <@numberFormat value="${wallet.currentBalance}" /></span> 元</div></div>
			<div class="bf b_lm">累计收益<div class="mt10"><span><@numberFormat value="${wallet.accumulateVote}" /></span> 元</div></div>
        </div>
    </div>
    <div class="dwb zhMomey1">
    	<div class="bf">
        	待收本金
           <div class="mt5"><span class="c333"><@numberFormat value="${wallet.awaitPrincipal}" /></span> 元</div>
        </div>
        <div class="bf">
        	待收收益
            <div class="mt5"><span class="c333"><@numberFormat value="${wallet.awaitIncome}" /></span> 元</div>
        </div>
    </div>
    <div class="cztxBox dwb">
    	<a id="payBtn" href="#" class="bf red"><span class="czico sicon"></span>充 值</a>
        <a id="withdrawBtn" href="#" class="bf b_l green"><span class="txico sicon"></span>提现</a>
    </div>
    
    <div class="textList">
    	<ul>
    		<a href="/investor/uc/html/investorRecord">
        		<li>
            		<span class="jlIco sicon"></span>
                	投资记录
                	<i></i>
            	</li>
            </a>
            <a href="/member/financial/details">
            	<li>
            		<span class="zjIco sicon"></span>
            		资金明细
            		<i></i>
            	</li>
            </a>
            <a href="/member/ftl/set">
            	<li>
            		<span class="szIco sicon"></span>
            		个人设置
            		<i></i>
           		</li>
            </a>
            <a href="/investor/html/aboutUs">
            	<li>
            		<span class="ptIco sicon"></span>
            		关于我们
            		<i></i>
           		</li>
            </a>
            <a href="/investor/html/faq">
            	<li>
            		<span class="cjIco sicon"></span>
            		常见问题
            		<i></i>
           		</li>
            </a>
        </ul>
    </div>
    <div class="textList pb100">
    	<ul>
        	<li>
            	 <p class="fr"><span class="dhIco sicon"></span><strong>400 000 333</strong></p>
            	<span class="kfIco sicon"></span>
              	  客服热线 
            </li>
           
        </ul>
    </div>
    <@include file="/common/footer"/>
    <div id="showMsgDiv" class="bodyBg" style="display:none;">
	   	<div class="tsTxt"></div>
	</div>
</@master>
<@js>
    $(document).ready(function(){
    	$('#payBtn').bind("click",function(){
    		$.ajax({
				url: '/member/rest/ajax/isNameVerify',
				type: "GET",
				success:function(result){
                    if(result.action == "error"){
            			$('#showMsgDiv .tsTxt').text(result.message).parent().show();
    					return false;
                    }
					window.location.href='/member/ftl/pay';
				}
			});
    	});
    	
    	$('#withdrawBtn').bind("click",function(){
    		$.ajax({
				url: '/member/rest/ajax/isWithDraw',
				type: "GET",
				success:function(result){
                    if(result.action == "error"){
                    	$('#showMsgDiv .tsTxt').text(result.message).parent().show();
    					return false;
                    }
					window.location.href='/member/ftl/withdraw';
				}
			});
    	});
    	
    	$('#showMsgDiv').bind('click',function(){
			$('#showMsgDiv').hide();
		});
		
	});
</@js>
<@jsRender/>